package cn.zhaoyuening.hnistalumnirecord.web.controller;

import cn.zhaoyuening.hnistalumnirecord.domain.News;
import com.sun.tracing.dtrace.ModuleAttributes;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by zhao on 17-1-30.
 */
@RequestMapping("demo")
@Controller
public class DemoController {
    @RequestMapping("upload.do")
    public String upload(@RequestParam(value = "file",required = false) MultipartFile file,  @ModelAttribute News news){
        return "";
    }
}
